{extends '../layout.latte'}

{block content}
<h1>Update a Post</h1>
<form action="{route('blog_update', [ 'id' => $post->id ])}" method="post">
	<label for="title">Title</label>
	<input type="text" name="title" placeholder="Title" value="{$post->title}" required>

	<label for="content">Content</label>
	<label><textarea name="content" placeholder="Content" required>{$post->content}</textarea>

	<button type="submit">Update</button>
</form>
{/block}